<include file="Public/HOME/HTML/head_html_5.html" />
<meta charset="utf-8" />
<title>我申请的项目{$Think.const.TITLE}</title>
<include file="Public/HOME/HTML/CssAndJs.html" />
<include file="Public/HOME/HTML/middle_list.html" />
<include file="Public/HOME/HTML/ProjectManagement.html" />
<!-- DataTables Example -->

<script src="{$Think.const.ADMINJS}Hint.js" type="text/javascript">
	
</script>
<script language="JavaScript">
	function myApplyDel(id,delTr){ 
			address = "{$Think.const.DOMAIN_NAME}Home/Project/applyDel/id/"+id; // 设置$.get调用路径
			var delTr = document.getElementById(delTr);                                  // 获取动态的表格ID
			$.get(address,function(str){                                               // 方法不太明白，大概意思是获取$.get返回的值
				if(str==0){                                                            // 如果返回的时0的话就证明是对的
				ZENG.msgbox.show("删除成功！", 4, 1000);
				delTr.parentNode.removeChild(delTr);                                   // 删除该行
			}else{                                                                     // 其他情况都是原密码错误    
				ZENG.msgbox.show("删除失败！", 5, 2000);
			}
		    });	 
	}
</script>
<div class="row" style="height: 80%">
	<div class="col-lg-10" style="float: right">
		<div class="widget-container fluid-height clearfix">
			<div class="heading">
				<i class="icon-table"></i>我申请的项目
			</div>
			<div class="widget-content padded clearfix">
				<table class="table table-bordered table-striped dataTable"
					id="datatable-editable">
					<thead>
						<th style="width: 10%; text-align: center">编号</th>
						<th style="width: 25%; text-align: center">项目名称</th>
						<th style="width: 10%; text-align: center">是否中标</th>
						<th style="width: 10%; text-align: center">操作</th>

					</thead>
					<tbody>
	
						<assign name="number" value="1" />
						<assign name="delTr" value="10000" />
						<volist name="info" id="vo">
						<tr id="{$delTr}">
							<td style="text-align: center;">{$number++}</td>
							<td><a
								href="{$Think.const.DOMAIN_NAME}Home/project/details/id/{$vo.id}"
								target="_bank"></a> {$vo.name}</td>

							<td style="text-align: center;">
								<switch name="vo.isjoined">
								    <case value="0"><span class="label label-warning">待审核</span></case>
								    <case value="1"><span class="label label-success">已中标</span></case>
								    <case value="2"><span class="label label-danger">未中标</span></case>
								</switch>
							</td>		
								<td style="text-align: center;">
								<a class="table-actions" href="javascript:void(0);" onclick="if(confirm('確定刪除么？')==0){ return false;}else{javascript:myApplyDel({$vo.id},{$delTr++})}" title="删除">
									<i class="icon-trash"></i></a></td>
							
						</tr {$delTr++}>
						</volist>
					
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<!-- end DataTables Example -->
</div>
</div>
<include file="Public/HOME/HTML/footer.html" />
</body>
</html>